﻿using System;

namespace ServiceLayerManagement.Tool
{
    public class ThreadHelper
    {
        public static void Delay(int mm)
        {
            DateTime current = DateTime.Now;
            while (current.AddMilliseconds(mm) > DateTime.Now)
            {
                DispatcherHelper.DoEvents();
            }
            return;
        }
    }
}
